var enjoySvc = require("../../services/enjoySvc");
//乐娱首页
exports.index = function (req, res) {
    res.render("enjoy/index");
};
//乐娱-我的数据
exports.myData = function (req, res) {
    enjoySvc.myData(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//乐娱-我的商品列表
exports.myProduct = function (req, res) {
    enjoySvc.myProduct(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//乐娱-我的优惠券列表
exports.myNormalCoupon = function (req, res) {
    enjoySvc.myNormalCoupon(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};

